
/**
* https://github.com/yscoder/border-1px
*/

$color-border: #e7e7e7;
$border-radius-size: 4px;

@mixin border-scale($s) {
  -webkit-transform: scale($s);
  transform: scale($s);
}

@mixin border-postion($x, $y) {
  -webkit-transform-origin: $x $y;
  transform-origin: $x $y;
}

@mixin bd() {
  border-width: 0;
  border-color: $color-border;
  border-style: solid;
}

@mixin ratina-bd($dpr) {
  &::before {
    width: 100% * $dpr;
    height: 100% * $dpr;
    @include border-scale(1/$dpr);
  }
}

.bd-t {
  @include bd();
  border-top-width: 1Px;
}

.bd-r {
  @include bd();
  border-right-width: 1Px;
}

.bd-b {
  @include bd();
  border-bottom-width: 1Px;
}

.bd-l {
  @include bd();
  border-left-width: 1Px;
}

.bd-all {
  @include bd();
  border-width: 1Px;
}

.bd-radius {
  @extend .bd-all;
  border-radius: $border-radius-size;
}

.bd-dashed {
  border-style: dashed !important;
}

hr {
  border: none;
}

hr,
.hr {
  margin: .7em 0;
  width: 100%;
  height: 1Px;
  background: $color-border;
  overflow: hidden;
}

@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
  .ratina-bd {
    position: relative;
    border: none !important;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      @include bd();
      @include border-postion(0, 0);
      pointer-events: none;
    }

    @include ratina-bd(1.5);

    &.bd-t {
      &::before {
        border-top-width: 1Px;
      }
    }

    &.bd-r {
      &::before {
        border-right-width: 1Px;
      }
    }

    &.bd-b {
      &::before {
        border-bottom-width: 1Px;
      }
    }

    &.bd-l {
      &::before {
        border-left-width: 1Px;
      }
    }

    &.bd-all {
      &::before {
        border-width: 1Px;
      }
    }

    &.bd-radius {
      &::before {
        border-width: 1Px;
        border-radius: $border-radius-size * 1.5;
      }
    }

    &.bd-dashed {
      &::before {
        border-style: dashed !important;
      }
    }

  }

  hr,
  .hr {
    width: 100% * 1.5;
    @include border-scale(1/1.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .ratina-bd {
    @include ratina-bd(2);

    &.bd-radius {
      &::before {
        border-radius: $border-radius-size * 2;
      }
    }
  }

  hr,
  .hr {
    width: 100% * 2;
    @include border-scale(1/2);
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 3) {
  .ratina-bd {
    @include ratina-bd(3);

    &.bd-radius {
      &::before {
        border-radius: $border-radius-size * 3;
      }
    }
  }

  hr,
  .hr {
    width: 100% * 3;
    @include border-scale(1/3);
  }
}

.pro-list{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px;
  .pro-item{
    width: 330px;
    padding-bottom: 30px;
    Image{
      display: block;
      width: 330px;
      height: 330px;
      background-color: #f4f4f4;
    }
    .pro-tips{
      display: flex;
      flex-wrap: wrap;
      padding: 10px 0;
      .pro-tag{
        padding: 0 10px;
        font-size: 24px;
        background-color: #bbb;
        color: #ffffff;
        margin-right: 10px;
        border-radius: 4px;
        &.primary{
          background-color: #d33e2a;
        }
      }
    }
    .pro-title{
      word-break: break-all;
      font-size: 28px;
    }
    .pro-disc{
      font-size: 24px;
      color: #999999;
    }
    .pro-price{
      .now-price{
        font-size: 36px;
        font-weight: bold;
        margin-right: 10px;
        color: #d33e2a;
      }
      .old-price{
        font-size: 28px;
        color: #666666;
        text-decoration: line-through;
      }
    }
  }
}
.my-tab-bar {
  .icon{
    display: inline-block;
    font-weight: 400;
    line-height: 1;
    font-size: 48px;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    &.icon-wode{
      font-weight: bold;
    }
  }
}
